home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
clipper
/
nftroff.zip
/
9.tr
< prev
next >
Wrap
Text File
|
1991-11-21
|
33KB
|
2,256 lines
.de }n
.bp
.sp .5i
..
.wh -.8i }n
.sp .5i
.po -.4i
.ll 7.5i
.ps 9
.vs 9
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_ALT() Determine status of the Alt key
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_ALT()
Determine status of the Alt key
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_ALT() -> lValue
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
\.T\. if Alt key is pressed, \.F\. if otherwise\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
This function is useful for times you need to know whether or not the
Alt key is pressed, such as during a MemoEdit()\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
IF FT_ALT()
.in 0.64i
@24, 0 say "Alt"
.in 0.4i
ELSE
.in 0.64i
.ta 1.2i
@24, 0 say " "
.br
.ta
.in 0.4i
ENDIF
.sp
.in 0.08i
\fBSource:\fR ALT\.C
.sp
\fBAuthor:\fR Ted Means
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_CAPLOCK()
, FT_CTRL()
, FT_NUMLOCK()
, FT_PRTSCR()
, FT_SHIFT()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_CAPLOCK() Determine and optionally change the status of CapLock key
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_CAPLOCK()
Determine and optionally change the status of CapLock key
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_CAPLOCK([ <lNewSetting> ]) -> lCurrentSetting
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
\fB<lNewSetting>\fR is optional and if supplied is the new setting
for the CapLock key\. Specify \.T\. to turn CapLock on, or \.F\. to
turn it off\.
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
\.T\. if CapLock is set, \.F\. if it isn\'t set\. The value returned
.in 0.48i
represents the setting in effect prior to any changes that might
by made by <lNewSetting>\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
This function is useful if you need to know or set the status of the
CapLock key for some reason\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
IF FT_CAPLOCK()
.in 0.64i
Qout( "CapLock is active" )
.in 0.4i
ENDIF
.sp
.in 0.08i
\fBSource:\fR CAPLOCK\.C
.sp
\fBAuthor:\fR Ted Means
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_ALT()
, FT_CTRL()
, FT_NUMLOCK()
, FT_PRTSCR()
, FT_SHIFT()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_CTRL() Determine status of the Ctrl key
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_CTRL()
Determine status of the Ctrl key
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_CTRL() -> lValue
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
\.T\. if Ctrl key is pressed, \.F\. if otherwise\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
This function is useful for times you need to know whether or not
the Ctrl key is pressed, such as during a MemoEdit()\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
IF FT_CTRL()
.in 0.64i
@24, 0 say "Ctrl"
.in 0.4i
ELSE
.in 0.64i
.ta 1.28i
@24, 0 say " "
.br
.ta
.in 0.4i
ENDIF
.sp
.in 0.08i
\fBSource:\fR CTRL\.C
.sp
\fBAuthor:\fR Ted Means
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_CAPLOCK()
, FT_NUMLOCK()
, FT_PRTSCR()
, FT_SHIFT()
, FT_ALT()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_MBUTPRS() Retrieve button press status
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_MBUTPRS()
Retrieve button press status
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.32i
\fBFT_MRESET( <nButton> [, @nButPrs [, @nX [, @nY] ] ] ) -> nButStatus
.sp
.in 0.08i
\fBArguments
.sp
.in 0.32i
\fB<nButton>\fR is the mouse button number:
.sp
.in 1.2i
.ta 0.88i
.br
0 - Left Button
.br
.ta
.ta 0.88i
.br
1 - Right Button
.br
.ta
.br
2 - Middle Button [if applicable]
.sp
.in 0.32i
\fB<nButPrs>\fR is the number of times the specified button was pressed
.in 1.12i
since the last call to this routine\. PASSED BY REFERENCE\.
.in 0.32i
\fB<nX>\fR is the X position of the cursor when the last press occurred\. PASSED
.in 1.12i
BY REFERENCE\.
.in 0.32i
\fB<nY>\fR is the Y position of the cursor when the last press occurred\. PASSED
.in 1.12i
BY REFERENCE\.
.sp
.sp
.in 0.08i
\fBReturns
.sp
.in 0.32i
An integer representing the button status:
.sp
.in 1.2i
.br
0 - no buttons pressed
.br
1 - left button pressed
.br
2 - right button pressed
.br
3 - left and right pressed
.br
4 - middle pressed
.br
5 - left and middle pressed
.br
6 - middle and right buttons pressed
.br
7 - all 3 buttons pressed
.sp
.in 0.08i
\fBDescription
.sp
.in 0.32i
Retrieves the mouse button status\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.32i
IF Empty( FT_MBUTPRS(1) )
.in 0.56i
? "No Item selected"
.in 0.32i
ENDIF
.sp
.in 0.08i
\fBSource:\fR MOUSE1\.PRG
.sp
\fBAuthor:\fR Robert DiFalco and Leo Letendre
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_MBUTREL()
, FT_MDBLCLK()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_MBUTREL() Get mouse button release information
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_MBUTREL()
Get mouse button release information
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_MBUTREL( nButton [, @nButRel [, @nX [, @nY] ] ]) -> nBStat
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
\fB<nButton>\fR is the mouse button number
.in 1.2i
.ta 0.88i
.br
0 - Left Button
.br
.ta
.ta 0.88i
.br
1 - Right Button
.br
.ta
.br
2 - Middle Button [if applicable]
.sp
.in 0.32i
\fB<nButRel>\fR is the number of times the specified button was released
.in 1.12i
since the last call to this routine\. PASSED BY REFERENCE\.
.sp
.in 0.32i
\fB<nX>\fR is the X position of the cursor when the last release occurred\.
.in 1.12i
PASSED BY REFERENCE\.
.sp
.in 0.32i
\fB<nY>\fR is the Y position of the cursor when the last release occurred\.
.in 1.12i
PASSED BY REFERENCE\.
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
.ta 0.8i
<nBStat> - an integer representing button release status
.br
.ta
.in 1.36i
.br
0 - None
.br
1 - Left
.br
2 - Right
.br
3 - Middle
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
This function returns the release status of the mouse buttons\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
IF( FT_MBUTREL( 0 ) == 1 )
.in 0.64i
? "Left button released"
.in 0.4i
ENDIF
.sp
.in 0.08i
\fBSource:\fR MOUSE1\.PRG
.sp
\fBAuthor:\fR Robert DiFalco and Leo Letendre
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_MBUTPRS()
, FT_MDBLCLK()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_MCURSOR() Set the mouse cursor
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_MCURSOR()
Set the mouse cursor
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.32i
\fBFT_MCURSOR( [ <lState> ] ) -> lCursorState
.sp
.in 0.08i
\fBArguments
.sp
.in 0.32i
\fB<lState>\fR is a logical indicating whether to set the mouse cursor on\.
.in 1.04i
.br
\.T\. - set mouse cursor on
.br
\.F\. - set mouse cursor off
.br
If omitted, no change is made to cursor state
.sp
.in 0.08i
\fBReturns
.sp
.in 0.32i
A logical indicating the previous mouse cursor state\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.32i
This function works like most Clipper state functions\. If no value
is sent to FT_MCURSOR() it will return the state of the mouse cursor\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.32i
IF !( FT_MCURSOR() )
.in 0.56i
FT_MCURSOR( \.T\. )
.in 0.32i
ENDIF
.sp
.in 0.08i
\fBSource:\fR MOUSE1\.PRG
.sp
\fBAuthor:\fR Robert DiFalco and Leo Letendre
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_MDBLCLK() Return true if a double click was detected
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_MDBLCLK()
Return true if a double click was detected
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.32i
\fBFT_MDBFCLK( [ <nClick> [, <nButton> [, <nInterval> [, <nRow> [, <nCol>;
.in 1.28i
\fB[, <nTime> ] ] ] ] ] ] ) -> lIsDoubleClk
.sp
.in 0.08i
\fBArguments
.sp
.in 0.32i
\fB<nClick>\fR is a numeric value\. If it is zero FT_MDBLCLK() will not
.in 1.04i
check for the first press but rather will simply wait the
specified period for a single press\. This is useful if this
routine is called from one which in turn responded to a button
press\. If it is not present or not equal to 0, then FT_MDBLCLK()
will wait for two presses of the specified button\.
.sp
.in 0.32i
\fB<nButton>\fR is the mouse button number
.in 1.2i
.ta 0.88i
.br
0 - Left Button
.br
.ta
.ta 0.88i
.br
1 - Right Button
.br
.ta
.br
2 - Middle Button [if applicable]
.sp
.in 0.32i
\fB<nInterval>\fR is the interva